package miniBanco.Gui;

import javax.swing.*;

import MySwing.JFormComponent;
import miniBanco.Core.Moneda;

@SuppressWarnings("serial")
public class ComboBoxMoneda extends JFormComponent{

private JLabel colourLabel;
private JComboBox comboBox;
private DefaultComboBoxModel model;

public ComboBoxMoneda()  {

    colourLabel = new JLabel();
    colourLabel.setText("Pepe");
    comboBox = new JComboBox(Moneda.values());     
    model = new DefaultComboBoxModel(Moneda.values());
    comboBox.setModel(model);
    comboBox.setSize(50, 20);
    
}
public JComboBox getComboBox()
{
	return comboBox;
}
@Override
protected void addComponent() {
	add(colourLabel);
	add(comboBox);
}
}